<?php echo $this->render('common/header.phtml'); ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl('public/css/news.css')); ?>

	<div id="news-content">
    
    	
    	<?php
    		if(isset($this->newsList) && !empty($this->newsList)) {
	    		foreach ($this->newsList as $oneNews){?>
		    	<div class="one-news">
		        	
		            <a href="<?php echo $this->baseUrl('index/newsdetail/id/'.$oneNews['id']); ?>" target="_blank" >
		                <img style="border: 1px solid rgb(239, 237, 238); float: left; width: 100px; height: 100px; margin: 0px 10px 2px 0px;" src="<?php echo $this->baseUrl('/public/images/system/'.$oneNews['represent_image']); ?>" alt="">
		            </a>
		       
		        	<div style="margin-left:100px;">
		                <a style="font-weight: bold;color: #0000ff;" target="_blank" href="<?php echo $this->baseUrl('index/newsdetail/id/'.$oneNews['id']); ?>">
		                    <?php echo @$oneNews['name'];?>
		                </a>
		                <br>
		                <span class="txt_gray_m">
		                    <span style="line-height: 20px;" class="txt_gray_m"><?php echo date('Y-m-d h:i:s', strtotime($oneNews['create_date'])); ?></span>
		                 </span>
		                <br>
		                <span style=" line-height: 17px;" class="txt_black_ml"><?php echo $oneNews['excerpt']; ?></span>
		                <a class="readmore" href="<?php echo $this->baseUrl('index/newsdetail/id/'.$oneNews['id']); ?>" target="_blank">Xem tiếp »</a>
		            </div>
				</div><!-- END .one-news -->
		        <hr/>
       <?php }//END foreach
			}//END if 
       		else{
					echo "There's no news here";
			}
       ?>
        
    </div><!-- END #news-content -->
    
    <div id="seperate"></div>
    
	<div id="page_ads">
		<div class="page_ads_item">
			<embed 	width="300" height="250" 
					type="application/x-shockwave-flash" 
					pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
					wmode="transparent"
					quality="high" 
					src="<?php echo $this->baseUrl('public/swf/sony-vaio.swf'); ?>">
		</div>
		<div class="page_ads_item">
			<img width="300" height="250" alt="GameTLBB_2006" src="<?php echo $this->baseUrl('/public/images/ads/images/tlbb_nd1_300x250-634764721247257500.gif'); ?>">
		</div>
	</div><!-- END #page_ads -->
        
<script type="text/javascript">
	$(document).ready(function(){
		var left_height = $('#news-content').height();
		var right_height = $('#page_ads').height();
		var true_height = Math.max(left_height, right_height);
		$('#seperate').height(true_height);
	});
	
</script>
<?php echo $this->render('common/footer.phtml'); ?>